using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace kongjian71
{
    [Designer(typeof(TongJi_EMS._TJ_Basic.TJ_BasicControlDesigner))]
    public partial class Tbian : TongJi_EMS._TJ_Basic.TJ_BasicControl
    {
        public Tbian()
        {
            InitializeComponent();
        }

        private void Tbian_Load(object sender, EventArgs e)
        {
            Tbian_Resize(sender, e);
        }

        private void Tbian_Paint(object sender, PaintEventArgs e)
        {
            Pen a = new Pen(Color.Red, 1);
            e.Graphics.DrawEllipse(a, x * 0.1f, y * 0.3f, x * 0.8f, y * 0.8f);
            e.Graphics.DrawEllipse(a, x * 0.1f, y * 0.9f, x * 0.8f, y * 0.8f);

            e.Graphics.DrawEllipse(a, x * 1.1f, y * 0.3f, x * 0.8f, y * 0.8f);
            e.Graphics.DrawEllipse(a, x * 1.1f, y * 0.9f, x * 0.8f, y * 0.8f);
            e.Graphics.DrawLine(a, x * 0.764575f, y, x * 1.235425f, y);
            e.Graphics.DrawLine(a, x, 0, x, y);


        }

        private void Tbian_Resize(object sender, EventArgs e)
        {
            this.x = this.Width / 2;
            this.y = this.Height / 2;
            Refresh();
        }

    }
}